﻿#region

using System.Collections.Generic;

using Frosty.Abilities;

using LazyLib.Combat;


#endregion

namespace DoctorDeath.Spells
{
    public class Buffs
    {
        private readonly List<PAction> _selfBuffActions;
        public HornofWinter SpellHornofWinter;
        public BoneShield SpellBoneShield;

        /// <summary>
        /// Initializes a new instance of the <see cref="Buffs"/> class.
        /// </summary>
        /// <param name="selfBuffActions">The self buff actions.</param>
        public Buffs(List<PAction> selfBuffActions)
        {
            _selfBuffActions = selfBuffActions;
            SpellHornofWinter = new HornofWinter(0, "Horn of Winter");
            SpellBoneShield = new BoneShield(1, "Bone Shield");
        }

        /// <summary>
        /// Learns the buffs.
        /// </summary>
        public void LearnBuffs()
        {
            if (SpellHornofWinter.Spell.DoesKeyExist)
            {
                _selfBuffActions.Add(SpellHornofWinter);
            }

            if (SpellBoneShield.Spell.DoesKeyExist)
            {
                _selfBuffActions.Add(SpellBoneShield);
            }
        }

        /// <summary>
        /// Gives the self buff actions.
        /// </summary>
        /// <returns></returns>
        public List<PAction> GiveSelfBuffActions()
        {
            return _selfBuffActions;
        }
    }
}